import request from '@/utils/request'

// 查询审核信息列表
export function listAudit(query) {
  return request({
    url: '/medicine/audit/list',
    method: 'get',
    params: query
  })
}

// 查询审核信息详细
export function getAudit(auditId) {
  return request({
    url: '/medicine/audit/' + auditId,
    method: 'get'
  })
}

// 新增审核信息
export function addAudit(data) {
  return request({
    url: '/medicine/audit',
    method: 'post',
    data: data
  })
}

// 修改审核信息
export function updateAudit(data) {
  return request({
    url: '/medicine/audit',
    method: 'put',
    data: data
  })
}

// 删除审核信息
export function delAudit(auditId) {
  return request({
    url: '/medicine/audit/' + auditId,
    method: 'delete'
  })
}
